<template>
  <div style="width: 100%; height: 100%;">
    <iframe id="DdiframeId" :src="DdiframeUrl" width="100%  " height="100%">
    </iframe>
  </div>
</template>

<script>

export default {
  data() {
    return {
      DdiframeUrl: 'http://njssjk.i2cc.nj.dc.sgcc.com.cn:7088/osp/GraphPub/Navigator.html?menubarshow=0;sidebar=0;isShowLeftNavBar=0;isShowRightSuspenBox=1;do_showfoot=0;graph=NJ.NANJING.ovh.pic.g'
    }
  },
  created() {
   },

  mounted() {
  },

  methods: {
    sendRequestToParent() {
      let obj = {
        fun: 'LocateDeviceArrayBydevId',
        param0: [sessionStorage.getItem('RaoZUId')],
        param1: true
      };
     console.log(obj ,'传递给调度一张图的参数')
     console.log('调用了子中的方法');
      let frame1 = document.getElementById('DdiframeId');
      frame1.contentWindow.postMessage(JSON.stringify(obj), '*')
    }
  }
}

</script>

<style lang="scss" scoped></style>